package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * C端租赁-商品信息表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_goods_info")
@ApiModel(value = "XhGoodsInfo对象", description = "C端租赁-商品信息表")
public class XhGoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("合作商ID")
    private Integer merchantId;

    @ApiModelProperty("类目ID")
    private Integer categoryId;

    @ApiModelProperty("商品信息")
    private String name;

    @ApiModelProperty("商品副标题")
    private String subTitle;

    @ApiModelProperty("商品sku")
    private String sku;

    @ApiModelProperty("商品主图")
    private String image;

    @ApiModelProperty("轮播图，多个英文逗号隔开")
    private String pics;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("商品类型 1-实物 2-服务")
    private Integer type;

    @ApiModelProperty("服务 总次数")
    private Integer serviceAmount;

    @ApiModelProperty("送货方式 11-快递发货 12-送货上门，21-线下核销 多个逗号隔开")
    private String expressType;

    @ApiModelProperty("可使用最大满电积分 0-不允许使用  具体数值代表最多允许使用积分 100积分=1元")
    private Integer maxCoin;

    @ApiModelProperty("商品介绍")
    private String content;

    @ApiModelProperty("商品状态 1-待审核 2-审核通过 3-审核不通过 4-再次审核（通过后再次审核）")
    private Integer status;

    @ApiModelProperty("审核说明")
    private String message;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("是否上下架 1-上架 0-下架")
    private Integer isSales;

    @ApiModelProperty("是否推荐 1-推荐 0-未推荐")
    private Integer isRecommend;

    @ApiModelProperty("子商品数量")
    private Integer subCount;

    @ApiModelProperty("排序号")
    private Integer sort;

    @ApiModelProperty("是否禁用 0-禁用 1-可用")
    private Integer isEnabled;

    @ApiModelProperty("是否删除 1-删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("省编号 发货地址")
    private Integer provinceId;

    @ApiModelProperty("省名 发货地址")
    private String province;

    @ApiModelProperty("市编号 发货地址")
    private Integer cityId;

    @ApiModelProperty("市名 发货地址")
    private String city;

}
